package org.theSeed.fileContract.pojo.dto;

import lombok.Getter;
import lombok.Setter;

/**
 * 文件分片上传记录者
 */
@Getter
@Setter
public class RecordChipUploadInfoDto {
    public RecordChipUploadInfoDto() {
    }

    public RecordChipUploadInfoDto(String contractTypeInstance, String contractType, String resourceId, Integer chipIndex) {
        this.contractTypeInstance = contractTypeInstance;
        this.contractType = contractType;
        this.resourceId = resourceId;
        this.chipIndex = chipIndex;
    }

    /**
     * 合约实例名称
     */
    private String contractTypeInstance;

    /**
     * 上传文件实现类型
     */
    private String contractType;

    /**
     * 访问id,资源全局唯一表示
     */
    private String resourceId;

    /**
     * 分片索引从o开始
     */
    private Integer chipIndex;
}
